<#compress>

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,  user-scalable=0;" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style"  />
    <meta content="telephone=no" name="format-detection" />
    <link rel="stylesheet" href="${ctx}/static/mobileweb/1/css/common_gift.css?_=${.now?string}">
    <script>
        document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
            WeixinJSBridge.call('hideToolbar');
        });
    </script>
    <title>礼品列表</title>
</head>
<body class="graybg">
<div class="mygiftbox clearfix">
    <a href="${ctx}/mobileweb/gift/mine?mid=${mid}&wxno=${wxno}" class="grayBtn fr">我的礼品</a>
       <span>
            <img src="${ctx}/static/mobileweb/1/images/score.png" class="vermiddle mr10 fl"/>
            <p class="points fl">
                <em>${member.surplus!}</em>积分
                <a href="${ctx}/mobileweb/currency?mid=${mid}&wxno=${wxno}" class="get">获取积分点这里 <i class="gt">&gt;&gt;</i></a>
            </p>
        </span>
</div>

<div class="mt10 mb15">
    <ul class="giftlists clearfix">
        <#if gifts??>
            <#list gifts as g>
                <li class="item">
                    <a href="${ctx}/mobileweb/gift/item?id=${g.id!}&mid=${mid}&wxno=${wxno}"><img style="width: 128px; height: 80px;" src="${ctx}${g.cover!}" class="wdh100"/></a>
                    <h3 class="title" data-url="${ctx}/mobileweb/gift/item?id=${g.id!}&mid=${mid}&wxno=${wxno}">${g.name!}</h3>
                    <p class="price">${g.intergral!}</p>
                    <p class="join"><a href="#">${g.slogan!'奖品有限，速来参加'}</a></p>
                    <#if g.hot?? && g.hot>
                    <i class="hot"></i>
                    </#if>
                </li>
            </#list>
        </#if>
    </ul>
</div>
</body>

<script type="text/javascript" src="${ctx}/static/mobileweb/scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
    $(function() {
        $('.title').click(function() {
            window.location.href = $(this).attr('data-url');
        });
    });
</script>

</html>

</#compress>